﻿/*----------------------------------------------------------------
// Copyright (C) 2016 通通优品版权所有。
// 命名空间: STOWaybillMall.ShopCart.Dto
// 类名：ShoppingSettlementOutput
// 功能描述：N/A
// 
// 创建标识：Roc.Lee(李鹏鹏) 2017/8/8 18:42:57 TEC-ROCLEE Roc.Lee

// 修改标识：
// 修改描述：
// 
//
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STOWaybillMall.ShopCart.Dto
{
    /// <summary>
    /// 购物结算
    /// </summary>
    public class ShoppingSettlementOutput : TongTongMall.UI.BaseOutput
    {
        /// <summary>
        /// 总金额
        /// </summary>
        public decimal TotalFee { get; set; }
        /// <summary>
        /// 需要支付金额
        /// </summary>
        public decimal NeedPayFee { get; set; }
        /// <summary>
        /// 单号总数
        /// </summary>
        public int WaybillsTotal { get; set; }
        /// <summary>
        /// 物料总数
        /// </summary>
        public int MaterialTotal { get; set; }
        /// <summary>
        /// 购物信息
        /// </summary>
        public IList<SettlementProductInfo> Products { get; set; }
        /// <summary>
        /// 账户余额
        /// </summary>
        public decimal Balance { get; set; }
        /// <summary>
        /// 购物信息
        /// </summary>
        public class SettlementProductInfo
        {

            /// <summary>
            /// 标识
            /// </summary>
            public Guid CartID { get; set; }
            /// <summary>
            /// 商品标识
            /// </summary>
            public long ProductID { get; set; }

            /// <summary>
            /// 商品图片
            /// </summary>
            public string PicUri { get; set; }
            /// <summary>
            /// 商品名称
            /// </summary>
            public string ProductName { get; set; }
            /// <summary>
            /// 规格和属性名
            /// </summary>
            public string SpecAndPropName { get; set; }
            /// <summary>
            /// 购买单价
            /// </summary>
            public decimal BuyPrice { get; set; }
            /// <summary>
            /// 总金额
            /// </summary>
            public decimal TotalFee { get; set; }
            /// <summary>
            /// 购买数量
            /// </summary>
            public int BuyCount { get; set; }

        }

    }
}
